<?php
/**
 *  @doc : http://documentup.com/Respect/Validation
 *  参数白名单
 */
use Sow\bug as Y;
use Respect\Validation\Validator as v;
class rule extends \Sow\sys\Rule {

  public function page() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function limit() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function total() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function c() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function s() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function d() {
    $validator = v::string();
    return  $validator;
  }
  public function t() {
    $validator = v::int();
    return  $validator;
  }
  public function apptype() {
    $validator = v::string();
    return  $validator;
  }
  public function nids() {
    $validator = v::string();
    return  $validator;
  }
  public function editor() {
    $validator = v::string();
    return  $validator;
  }
  public function category() {
    $validator = v::string();
    return  $validator;
  }
  public function contentid() {
      $validator = v::int();
      return  $validator;
  }
  public function tag() {
    $validator = v::string();
    return  $validator;
  }
  public function menu() {
    $validator = v::string();
    return  $validator;
  }
  public function catid() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function catids() {
    $validator = v::string();
    return  $validator;
  }
   public function property() {
    $validator = v::string();
    return  $validator;
  }
  public function propertyid() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function propertyids() {
    $validator = v::string();
    return  $validator;
  }
  public function sectionid() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function optionid() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function tagid() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function topicid() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function itemid() {
    $validator = v::int()->min( 0 );
    return  $validator;
  }
  public function title() {
    $validator = v::string();
    return  $validator;
  }
  public function email() {
    $validator = v::email();
    return  $validator;
  }
  public function username() {
    $validator = v::string();
    return  $validator;
  }
  public function name() {
    $validator = v::string();
    return  $validator;
  }
  public function phone() {
    $validator = v::int()->min(0);
    return  $validator;
  }
  public function qq() {
    $validator = v::int()->min(0);
    return  $validator;
  }
  public function q() {
    $validator = v::string();
    return  $validator;
  }
  public function content() {
    $validator = v::string();
    return  $validator;
  }

    public function id() {
        $validator = v::int()->min( 0 );
        return  $validator;
    }
    
    public function userid() {
        $validator = v::int()->min( 0 );
        return  $validator;
    }

    public function user() {
        $validator = v::string();
        return  $validator;
    }

    public function password() {
        $validator = v::string();
        return  $validator;
    }

    public function status() {
        $validator = v::int();
        return  $validator;
    }

    public function issue() {
        $validator = v::int()->min( 0 );
        return  $validator;
    }

     
    public function display() {
        $validator = v::int();
        return  $validator;
    }
    
    public function newsid() {
        $validator = v::int()->min( 0 );
        return  $validator;
    }
    public function cover() {
        $validator = v::string();
        return  $validator;
    }
    public function img() {
        $validator = v::string();
        return  $validator;
    }
    public function url() {
        $validator = v::string();
        return  $validator;
    }
    public function qa() {
        $validator = v::string();
        return  $validator;
    }
    public function opinion() {
        $validator = v::string();
        return  $validator;
    }
    public function weibo() {
        $validator = v::string();
        return  $validator;
    }
    public function baoming_img() {
        $validator = v::string();
        return  $validator;
    }
    public function baoming_title() {
        $validator = v::string();
        return  $validator;
    }
    public function baoming_subject() {
        $validator = v::string();
        return  $validator;
    }
    public function baoming_vip() {
        $validator = v::string();
        return  $validator;
    }
    public function pubdate() {
        $validator = v::date();
        return  $validator;
    }
    public function baoming_address() {
        $validator = v::string();
        return  $validator;
    }
    public function summary() {
        $validator = v::string();
        return  $validator;
    }

    public function uname() {
        $validator = v::string();
        return  $validator;
    }
    public function uphone() {
        $validator = v::int()->min(0);
        return  $validator;
    }
    public function uemail() {
        $validator = v::string();
        return  $validator;
    }
    public function ucompany() {
        $validator = v::string();
        return  $validator;
    }
    public function ujob() {
        $validator = v::string();
        return  $validator;
    }
    public function ureason() {
        $validator = v::string();
        return  $validator;
    }
    public function starttime() {
        $validator = v::int();
        return  $validator;
    }
    public function endtime() {
        $validator = v::int();
        return  $validator;
    }
  public function editer() {
    $validator = v::string();
    return  $validator;
    }
  public function cachekey() {
    $validator = v::string();
    return  $validator;
  }
  public function device() {
    $validator = v::string();
    return  $validator;
  }
  public function rank() {
    $validator = v::int();
    return  $validator;
  }


  public function ranktype() {
    $validator = v::int();
    return  $validator;
  }

  public function type() {
    $validator = v::string();
    return  $validator;
  }

  public function action() {
    $validator = v::string();
    return  $validator;
  }

  public function date() {
    $validator = v::string();
    return  $validator;
  }

  public function sort() {
    $validator = v::string();
    return  $validator;
  }

  public function start() {
    $validator = v::string();
    return  $validator;
  }

  public function by() {
    $validator = v::string();
    return  $validator;
  }

  public function app(){
    $validator = v::string();
    return $validator;
  }

  public function wd(){
    $validator = v::string();
    return  $validator;
  }
  public function specialid(){
    $validator = v::int();
    return  $validator;
    
  }

  public function os(){
    $validator = v::string();
    return  $validator;
    
  }

  public function author() {
    $validator = v::string();
    return  $validator;
  }

  public function fakeid() {
    $validator = v::string();
    return  $validator;
  }

  /**
   * for techmaster
   */
  public function sex() {
    $validator = v::string();
    return  $validator;
  }
  public function nationality() {
    $validator = v::string();
    return  $validator;
  }
  public function avatar() {
    // $validator = v::string();
    $validator = v::call(
      'parse_url',
      v::arr()->key('scheme', v::startsWith('http'))
        ->key('host',   v::domain())
        ->key('path',   v::string())
    );
    return  $validator;
  }
  public function birthday() {
    $validator = v::date()->between('1900-01-01', '2020-01-01');

    return  $validator;
  }
  public function position() {
    $validator = v::string();
    return  $validator;
  }
  public function birthplace() {
    $validator = v::string();
    return  $validator;
  }
  public function graduateschool() {
    $validator = v::string();
    return  $validator;
  }
  public function professional() {
    $validator = v::string();
    return  $validator;
  }
   public function eventdescription() {
    $validator = v::string();
    return  $validator;
  }
  public function keyword() {
    $validator = v::string();
    return  $validator;
  }
  public function resume() {
    $validator = v::string();
    return  $validator;
  }
  public function companylogo() {
    $validator = v::string();
    return  $validator;
  }
  public function companyname() {
    $validator = v::string();
    return  $validator;
  }
  public function companyprofile() {
    $validator = v::string();
    return  $validator;
  }
  public function educationbackground() {
    $validator = v::string();
    return  $validator;
  }
  public function leader() {
    $validator = v::string();
    return  $validator;
  }
  public function companyurl() {
    // $validator = v::string();
    $validator = v::call(
      'parse_url',
      v::arr()->key('scheme', v::startsWith('http'))
        // ->key('host',   v::domain())
        // ->key('path',   v::string())
    );
    return  $validator;
  }
  public function rival() {
    $validator = v::string();
    return  $validator;
  }
  public function yet() {
    $validator = v::string();
    return  $validator;
  }
  public function province() {
    $validator = v::string();
    return  $validator;
  }
  public function city() {
    $validator = v::string();
    return  $validator;
  }
  public function photos() {
    $validator = v::arr()->notEmpty();
    return  $validator;
  }
  public function attr() {
    $validator = v::arr()->notEmpty();
    return  $validator;
  } 
   
  public function yearstart() {
    $validator = v::int()->min(0);
    return  $validator;
  }
  public function yearend() {
    $validator = v::int()->min(0);
    return  $validator;
  }
  public function monthstart() {
    $validator = v::int()->between(0, 13);
    return  $validator;
  }
  public function monthend() {
    $validator = v::int()->between(0, 13);
    return  $validator;
  }
  public function dayend() {
    $validator = v::int()->between(0, 32);
    return  $validator;
  }
  public function weight() {
    $validator = v::int()->min(0)->max(100);
    return  $validator;
  }

  //栏目别名
  public function alias() {
    $validator = v::string();
    return  $validator;
  }
  
  //scws分词接口 密钥参数
  public function key() {
  	$validator = v::string();
  	return  $validator;
  }
  
  //scws分词接口 待分词参数
  public function text() {
  	$validator = v::string();
  	return  $validator;
  }
  
  //微信抽奖 
  public function openid() {
  	$validator = v::string();
  	return  $validator;
  }
  
  //微信抽奖 
  public function md5openid() {
  	$validator = v::string();
  	return  $validator;
  }
 
  
}
